import request from '@/utils/request'

export const getResourceList = data => {
  return request({
    url: '/rescources/getResourceList',
    method: 'post',
    data,
  })
}

export const delResource = rid => {
  return request({
    url: '/rescources/del?id=' + rid,
    method: 'delete',
  })
}

export const addResource = data => {
  return request({
    url: '/rescources/add',
    method: 'post',
    data,
  })
}